package com.ztesoft.web.common.db.dao.mapper;

import com.ztesoft.web.common.db.arg.DmDataCommandArg;
import com.ztesoft.web.common.db.po.DmDataCommandPO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface IDmDataCommandMapper {
    
    List<Integer> countByArg(DmDataCommandArg arg);

    List<DmDataCommandPO> selectByArg(DmDataCommandArg arg);

    DmDataCommandPO selectByPrimaryKey(Integer id);

    List<DmDataCommandPO> selectByArgAndPage(DmDataCommandArg arg, RowBounds rowBound);

    int insert(DmDataCommandPO record);

    int insertSelective(DmDataCommandPO record);

    int insertBatch(@Param("list") List<DmDataCommandPO> records);

    int updateByArgSelective(@Param("record") DmDataCommandPO record,
            @Param("arg") DmDataCommandArg arg);

    int updateByArg(@Param("record") DmDataCommandPO record,
            @Param("arg") DmDataCommandArg arg);

    int updateByPrimaryKeySelective(DmDataCommandPO record);

    int updateByPrimaryKey(DmDataCommandPO record);
    
    int deleteByArg(DmDataCommandArg arg);
    
    int deleteByPrimaryKey(Integer id);
    
    List<DmDataCommandPO> selectBySrcDataId(Integer srcDataId );
    
}